package exam.ccwtest;

import android.app.*;
import android.os.*;
import android.view.*;
import android.widget.*;

public class c03_ButtonEdit extends Activity {
	public void onCreate (Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView (R.layout.c03_buttonedit);
		
		Button btn=(Button) findViewById(R.id.btn);
		btn.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				EditText edit = (EditText)findViewById(R.id.edit);
				String str = edit.getText().toString();
				Toast.makeText(c03_ButtonEdit.this, str, Toast.LENGTH_SHORT).show();
			}
		});
	}
}
